<?php

namespace App\Service\service\wechat;

use App\Service\interface\wechat\WechatServiceInterface;

class WechatService implements WechatServiceInterface
{
    //微信公众对象
    public $app;
    //站点
    private int $site_id;
    //公众号类型
    public array $service_type = array(
        0 => "订阅号",
        1 => "由历史老帐号升级后的订阅号",
        2 => "服务号",
    );

    //公众号认证类型
    public array $verify_type = array(
        -1 => "未认证",
        0  => "微信认证",
        1  => "新浪微博认证",
        2  => "腾讯微博认证",
        3  => "已资质认证通过但还未通过名称认证",
        4  => "已资质认证通过、还未通过名称认证，但通过了新浪微博认证",
        5  => "已资质认证通过、还未通过名称认证，但通过了腾讯微博认证",
    );

    //business_info 说明
    public array $business_type = array(
        'open_store' => "是否开通微信门店功能",
        'open_scan'  => "是否开通微信扫商品功能",
        'open_pay'   => "是否开通微信支付功能",
        'open_card'  => "是否开通微信卡券功能",
        'open_shake' => "是否开通微信摇一摇功能",
    );
    public function __construct($site_id = 0)
    {
        $this->site_id = $site_id;
    }

    /**
     * 授权实例
     */
    public function app()
    {

    }
}